﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebApplication1.Controllers
{
    public class DynamicController : Controller
    {
        // GET: Dynamic
        public ActionResult Index()
        {
            dynamic info = (dynamic)Request.QueryString;
            object obj = new
            {
                Name = "小明",
                SayHi = "你妹的！"
            };
              
            dynamic dyName = ((dynamic)obj).Name;
            dynamic dySayHi = ((dynamic)obj).SayHi;

            return View();
        }
    }
}